package com.employee.service.impl;

import com.employee.controller.LeaveController;
import com.employee.mapper.LeaveMapper;
import com.employee.mapper.StaffScheduleMapper;
import com.employee.pojo.dto.StarffScheduleDTO;
import com.employee.pojo.entry.LeaveType;
import com.employee.pojo.vo.StaffScheduleVo;
import com.employee.service.LeaveTypeService;
import com.employee.service.StaffScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LeaveTypeServiceImpl implements LeaveTypeService {

    @Autowired
    private LeaveMapper leaveMapper;

    @Override
    public List<LeaveType> getLeave() {
        return leaveMapper.getLeave();
    }

    @Override
    public void addLeave(LeaveType leave) {
        leaveMapper.addLeave(leave);
    }

    @Override
    public void updateLeave(LeaveType leave) {
        leaveMapper.updateLeave(leave);
    }

    @Override
    public void deleteLeave(int id) {
        leaveMapper.deleteLeave(id);
    }
}
